package canvas;

import java.awt.*;

/**
 * Created by IntelliJ IDEA.
 * User: ilya
 * Date: 01.12.2010
 * Time: 18:02:48
 */
public class ConsoleCanvas implements Canvas {

    private Color color = Color.black;

    public void setColor(Color color) {
        this.color = color;
    }

    public void drawLine(int x1, int y1, int x2, int y2) {
        System.out.printf("line from (%d, %d) to (%d, %d), color %s\n", x1, y1, x2, y2, color);
    }

    public void drawCircle(int x, int y, int r) {
        System.out.printf("circle with center (%d, %d) and radius %d, color %s\n", x, y, r, color);
    }
}
